const changeUtils = {
  /**
  *  获取房屋设施
  *
  * @param {*} serviceType
  * @returns
  */
  getHouseService(serviceType) {
    let service
    switch (serviceType) {
      case '床':
        service = 1
        break
      case '洗衣机':
        service = 2
        break
      case '空调':
        service = 3
        break
      case '冰箱':
        service = 4
        break
      case '电视':
        service = 5
        break
      case '热水器':
        service = 6
        break
      case '衣柜':
        service = 7
        break
      case '沙发':
        service = 8
        break
      case '书桌':
        service = 9
        break
      case '燃气灶':
        service = 10
        break
      case '茶几':
        service = 11
        break
      case '独卫':
        service = 12
        break
      case '带阳台':
        service = 13
        break
      default:
        service = ''
    }

    return service
  },

  /**
     * 获取个人爱海
     *
     * @param {*} preferenceType
     * @returns
     */
  getPreference(preferenceType) {
    let preference
    switch (preferenceType) {
      case '单身':
        preference = 1
        break
      case '情侣':
        preference = 2
        break
      case '夫妻':
        preference = 3
        break
      case '男女均可':
        preference = 4
        break
      case '年轻人':
        preference = 5
        break
      case '干净整洁':
        preference = 6
        break
      case '作息正常':
        preference = 7
        break
      case '不吸烟':
        preference = 8
        break
      case '不养宠物':
        preference = 9
        break
      case '工作稳定':
        preference = 10
        break
      case '企业白领':
        preference = 11
        break
      case '养宠物':
        preference = 12
        break
      case '急需':
        preference = 13
        break
      default:
        preference = ''
    }

    return preference
  },
  //租房需求标签
  getRentalDemand(RentalDemandType) {
    let RentalDemand
    switch (RentalDemandType) {
      case '单身':
        RentalDemand = 1
        break
      case '情侣':
        RentalDemand = 2
        break
      case '男性':
        RentalDemand = 3
        break
      case '女性':
        RentalDemand = 4
        break
      case '年轻人':
        RentalDemand = 5
        break
      case '干净整洁':
        RentalDemand = 6
        break
      case '作息正常':
        RentalDemand = 7
        break
      case '不吸烟':
        RentalDemand = 8
        break
      case '不养宠物':
        RentalDemand = 9
        break
      case '工作稳定':
        RentalDemand = 10
        break
      // case '企业白领':
      //   RentalDemand = 11
      //   break
      case '养宠物':
        RentalDemand = 12
        break
      case '急需找房':
        RentalDemand = 13
        break
      default:
        RentalDemand = ''
    }

    return RentalDemand
  },
  /**
     * 获取房东推荐
     * @param {*} recommendType
     * @returns
     */
  getRecommend(recommendType) {
    let recommend
    switch (recommendType) {
      case '精装修':
        recommend = 1
        break
      case '近商场':
        recommend = 2
        break
      case '近地铁':
        recommend = 3
        break
      case '近公交':
        recommend = 4
        break
      case '通风好':
        recommend = 5
        break
      case '采光好':
        recommend = 6
        break
      case '隔音好':
        recommend = 7
        break
      case '南北通透':
        recommend = 8
        break
      case '有车位':
        recommend = 9
        break
      case '独立阳台':
        recommend = 10
        break
      case '电梯房':
        recommend = 11
        break
      case '独卫':
        recommend = 12
        break
      case '智能锁':
        recommend = 13
        break
      case '配套齐全':
        recommend = 14
        break
      case '首次出租':
        recommend = 15
        break
      case '随时看房':
        recommend = 16
        break
      case '押一付一':
        recommend = 17
        break
      case '拎包入住':
        recommend = 18
        break
      default:
        recommend = ''
    }

    return recommend
  }
}

export { changeUtils }
